package com.powerwyx.apiclientsdk;

import com.powerwyx.apiclientsdk.client.ApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author 王艺锡
 * @version 1.0
 */
@Data
@Configuration
@ComponentScan
@ConfigurationProperties(prefix = "api.client")
public class ApiClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public ApiClient ApiClient(){
       return new ApiClient(accessKey,secretKey);
    }
}
